package day05.bigdecimal;

import java.math.BigDecimal;

public class Lian03 {
    public static void main(String[] args) {
        BigDecimal b1=new BigDecimal("10");
        BigDecimal b2=new BigDecimal("3");
        BigDecimal divide1 = b1.divide(b2, 2, BigDecimal.ROUND_UP);
        System.out.println(divide1);
        BigDecimal divide2 = b1.divide(b2, 2, BigDecimal.ROUND_FLOOR);
        System.out.println(divide2);
        BigDecimal divide3 = b1.divide(b2, 2, BigDecimal.ROUND_HALF_UP);
        System.out.println(divide3);

    }
}
